
CC = gcc
CFLAGS = -g -pipe -Wall -std=c99
OBJECTS = system.o network.o yjktypes.o serialize.o scheme.o

yellowjacket: yellowjacket.so yellowjacket.h main.o
	$(CC) $(CFLAGS) main.o $(OBJECTS) -o yellowjacket
#	export LD_LIBRARY_PATH=./

yellowjacket.so: $(OBJECTS)
	$(CC) $(OBJECTS) -fPIC -shared -o yellowjacket.so

main.o: main.c yellowjacket.h
system.o: system.c system.h
network.o: network.c network.h
serialize.o: serialize.c serialize.h
scheme.o: scheme.c scheme.h

clean:
	rm -f *.o *~
